import { IsNotEmpty } from 'class-validator';
import { IsNotExistsRule } from 'src/common/rules/is-not-exists.rule';
export class LoginDto {
  @IsNotEmpty({ message: '用户名不能为空！' })
  @IsNotExistsRule('user', { message: '用户名不存在！' })
  username: string;
  @IsNotEmpty({ message: '密码不能为空！' })
  password: string;
}
